<?php

namespace App\Clients\JinShouFu;

use GuzzleHttp\Exception\GuzzleException;

class DownloadFile extends JinShouFuClient
{
    protected $isJson = false;

    public $filePath = "";

    public function handleData(): void
    {
        file_put_contents($this->filePath,$this->contents);
    }


    /**
     * @throws GuzzleException
     */
    public function execute($queryData): DownloadFile
    {
        return $this->get("https://www.jsfpay.com/exportRecord/exportDownload.do",$queryData);
    }
}
